<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-问答</title>
    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->
    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-logined.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-qa-login.css"/>
</head>
<body>
<div id="app">
    <div class="wrapper">
        <div class="wrapper">
            <!--引用组件-->
            <!--头部导航-->
            <header>
                <div class="sui-navbar">
                    <div class="navbar-inner">
                        <a href="/" class="sui-brand"><img src="./img/asset-logo-black.png"
                                                                               alt="社交"/></a>
                        <ul class="sui-nav">
                            <li><a href="/">头条</a></li>
                            <li class="active"><a href="./qa-logined.html">问答</a></li>
                            <li><a href="./activity-index.html">活动</a></li>
                            <li><a href="/">交友</a></li>
                            <li><a href="./spit-index.html">吐槽</a></li>
                            <li><a href="/">招聘</a></li>
                        </ul>
                        <form class="sui-form sui-form pull-left">
                            <input type="text" placeholder="输入关键词..."/>
                            <span class="btn-search fa fa-search"></span>
                        </form>
                        <div v-if="username" class="sui-nav pull-right info">
                    <li><a href="./other-notice.html" target="_blank" class="notice">通知</a></li>
                    <li class="hover"><span class="fa fa-plus "></span>
                        <ul class="hoverinfo">
                            <li><i class="fa fa-share-alt" aria-hidden="true"></i> <a
                                    href="./headline-submit.html">去分享</a>
                            </li>
                            <li><i class="fa fa-question-circle" aria-hidden="true"></i> <a href="./qa-submit.html"
                                                                                            target="_blank">提问题</a>
                            </li>
                            <li><i class="fa fa-comments" aria-hidden="true"></i><a href="./spit-submit.html"
                                                                                    target="_blank">去吐槽</a></li>
                            <li><i class="fa fa-heartbeat" aria-hidden="true"></i> <a
                                    href="./makeFriends-submit.html" target="_blank">发约会</a></li>
                        </ul>
                    </li>
                    <li><a href="./person-homepage.html" target="_blank" class="homego"><img
                            src="./img/widget-photo.png" alt="用户头像"/></a></li>
                </div>
                        <div v-else class="sui-nav pull-right info">
                    <li><a href="./person-loginsign.html" target="_blank">注册</a></li>
                    <li><a href="./person-loginsign.html" target="_blank" class="sui-btn btn-login">登录</a></li>
                </div>
                    </div>
                </div>
            </header>
        </div>
    </div>
    <div class="tab-nav ">
        <div class="wrapper">
            <ul class="fl sui-nav nav-tabs navbar-dark">
                <li class="active"><a href="#index" data-toggle="tab">首页</a></li>
                <li><a href="#php" data-toggle="tab">Php</a></li>
                <li><a href="#js" data-toggle="tab">Javascript </a></li>
                <li><a href="#python" data-toggle="tab">Python</a></li>
                <li><a href="#java" data-toggle="tab">Java</a></li>
            </ul>
            <span class="fr more"><a href="./qa-allTag.html" target="_blank">更多</a></span>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--两列布局-->
    <div class="wrapper qa-content">
        <div class="fl left-list">
            <div class="tab-content">
                <div id="index" class="tab-pane active">
                    <div class="tab-bottom-line">
                        <ul id="qa-tab" class="sui-nav nav-tabs">
                            <li class="active"><a @click="new_question" href="#new" data-toggle="tab">最新回答</a></li>
                            <li><a @click="hot_question" href="#hot" data-toggle="tab">热门回答</a></li>
                            <li><a @click="wait_question" href="#wait" data-toggle="tab">等待回答</a></li>
                        </ul>
                        <div class="qa-list">
                            <div class="tab-content">
                                <div id="new" class="tab-pane active">
                                    <ul class="detail-list">
                                        <li class="qa-item" v-for="question in questions">
                                            <div class="fl record">
                                                <div class="number">
                                                    <div class="border useful">
                                                        <p class="usenum">{{ question.like_count }}</p>
                                                        <p>有用</p>
                                                    </div>
                                                    <div class="border answer">
                                                        <p class="ansnum">{{ question.answer_count }}</p>
                                                        <p>回答</p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="fl info">
                                                <div class="question">
                                                    <p class="author"><span class="name">luckness</span><span>3</span>分钟前回答
                                                    </p>
                                                    <p class="title"><a
                                                            :href="'./qa-detail.html?question_id='+question.id"
                                                            target="_blank">{{ question.title }}</a>
                                                    </p>
                                                </div>
                                                <div class="other">
                                                    <ul class="fl sui-tag" v-for="label in question.labels">
                                                        <li>{{ label.name }}</li>
                                                    </ul>
                                                    <div class="fr brower">
                                                        <p>浏览量 {{ question.click_count }}
                                                            | {{ question.create_time | str2date | str2ymd }} {{ question.create_time | str2date | str2hm }}来自
                                                            <a href="#">{{ question.author }}</a></p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                        </li>
                                    </ul>
                                    <ul style="display: none" class="detail-list">
                                        <li class="qa-item" v-for="question in questions">
                                            <div class="fl record">
                                                <div class="number">
                                                    <div class="border useful">
                                                        <p class="usenum">{{ question.like_count }}</p>
                                                        <p>有用</p>
                                                    </div>
                                                    <div class="border answer">
                                                        <p class="ansnum">{{ question.answer_count }}</p>
                                                        <p>回答</p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="fl info">
                                                <div class="question">
                                                    <p class="author"><span class="name">luckness</span><span>3</span>分钟前回答
                                                    </p>
                                                    <p class="title"><a
                                                            :href="'./qa-detail.html?question_id='+question.id"
                                                            target="_blank">{{ question.title }}</a>
                                                    </p>
                                                </div>
                                                <div class="other">
                                                    <ul class="fl sui-tag" v-for="label in question.labels">
                                                        <li>{{ label.name }}</li>
                                                    </ul>
                                                    <div class="fr brower">
                                                        <p>浏览量 {{ question.click_count }}
                                                            | {{ question.create_time | str2date | str2ymd }} {{ question.create_time | str2date | str2hm }}来自
                                                            <a href="#">{{ question.author }}</a></p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                        </li>
                                    </ul>
                                    <ul style="display: none" class="detail-list">
                                        <li class="qa-item" v-for="question in questions">
                                            <div class="fl record">
                                                <div class="number">
                                                    <div class="border useful">
                                                        <p class="usenum">{{ question.like_count }}</p>
                                                        <p>有用</p>
                                                    </div>
                                                    <div class="border answer">
                                                        <p class="ansnum">{{ question.answer_count }}</p>
                                                        <p>回答</p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="fl info">
                                                <div class="question">
                                                    <p class="author"><span class="name">luckness</span><span>3</span>分钟前回答
                                                    </p>
                                                    <p class="title"><a
                                                            :href="'./qa-detail.html?question_id='+question.id"
                                                            target="_blank">{{ question.title }}</a>
                                                    </p>
                                                </div>
                                                <div class="other">
                                                    <ul class="fl sui-tag" v-for="label in question.labels">
                                                        <li>{{ label.name }}</li>
                                                    </ul>
                                                    <div class="fr brower">
                                                        <p>浏览量 {{ question.click_count }}
                                                            | {{ question.create_time | str2date | str2ymd }} {{ question.create_time | str2date | str2hm }}来自
                                                            <a href="#">{{ question.author }}</a></p>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                        </li>
                                    </ul>
                                </div>
                                <div id="hot" class="tab-pane">
                                    <p>热门回答</p>
                                </div>
                                <div id="wait" class="tab-pane">
                                    <p>等待回答</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="php" class="tab-pane">
                    php
                </div>
                <div id="js" class="tab-pane">
                    Javascript
                </div>
                <div id="python" class="tab-pane">
                    python
                </div>
                <div id="java" class="tab-pane">
                    java
                </div>
            </div>
        </div>
        <div class="fl right-tag">
            <div class="block-btn">
                <p>今天，有什么好东西要和大家分享么?</p>
                <a class="sui-btn btn-block btn-share" href="./qa-submit.html" target="_blank">发布问题</a>
            </div>
            <div class="hot-tags">
                <div class="head">
                    <h3 class="title">热门标签</h3>
                </div>
                <div class="tags">
                    <ul class="sui-tag">
                        <li>Php</li>
                        <li>Javascript</li>
                        <li>Gif</li>
                        <li>Java</li>
                        <li>C#</li>
                        <li>iOS</li>
                        <li>C++</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="footer">

    </div>
</div>
<script>
    // $(function(){#}
    //   $(".hover").hover(function(){#}
    //     $(".hoverinfo").stop().animate({#}
    //        opacity: "show"#}
    //     },"slow");#}
    //     $(this).find(".fa-plus").css("color","#e64620");#}
    //   },function(){#}
    //     $(".hoverinfo").stop().animate({#}
    //        opacity: "hide"#}
    //     },"slow");#}
    //     $(this).find(".fa-plus").css("color","#000");#}
    //   })#}
    // })#}
</script>

<script src="./js/vue-2.5.16.js"></script>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/jquery.min.js"></script>
<script>
    $(function () {
        $("#qa-tab li").click(function () {
            var tab_index = $(this).index();
            $(this).addClass("active").siblings().removeClass("active");
            $(".detail-list").eq(tab_index).show().siblings().hide();
        })
    })
</script>
<script src="./js/base.js"></script>
<script src="./js/qa-logined.js"></script>
<script src="./plugins/jquery/dist/jquery.min.js">
</script>
<script>
    $(".footer").load("./footer.html");
</script>
</body>
</html>